//
//  SectionForthCell.m
//  halfSweat
//
//  Created by 甘伟杰 on 16/5/15.
//  Copyright © 2016年 ganweijie. All rights reserved.
//

#import "SectionForthCell.h"
#import "RowItem.h"
#import <UIButton+WebCache.h>

@interface SectionForthCell ()

/** 左边按钮 */
@property (weak, nonatomic) IBOutlet UIButton *leftButton;
/** 右边按钮 */
@property (weak, nonatomic) IBOutlet UIButton *rightButton;

@end

@implementation SectionForthCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setItem:(RowItem *)item {
    _item = item;
    
//    [self.leftButton setImage:item.leftImage forState:UIControlStateNormal];

    [_leftButton sd_setImageWithURL:item.leftImageURL forState:UIControlStateNormal];
    [self.leftButton setTitle:item.leftTitle forState:UIControlStateNormal];
    
    [_rightButton sd_setImageWithURL:item.rightImageURL forState:UIControlStateNormal];
    [self.rightButton setTitle:item.rightTitle forState:UIControlStateNormal];
    
//    [self.rightButton setImage:item.rightImage forState:UIControlStateNormal];
}

@end
